package com.ck.controller;

import com.ck.common.constant.R;
import com.ck.entity.AspectTestEntity;
import com.ck.entity.HtmlEntity;
import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ck
 */
@Slf4j
@RestController
@RequestMapping("/as")
public class AspectController {

    @GetMapping("test")
    public R logout(){
        AspectTestEntity aspectTestEntity = new AspectTestEntity();
        aspectTestEntity.setId("1");
        aspectTestEntity.setType(1);
        HtmlEntity htmlEntity = new HtmlEntity("1","0","Fuck",0,"http://fuck.you","");
        List<HtmlEntity> list = Lists.newArrayList(htmlEntity);
        aspectTestEntity.setHtmlList(list);
        return R.OK(aspectTestEntity);
    }

}
